import http from "../utils/http";

// 获取商品详情
let getGoodsInfo = (id)=>http(`/api/front/product/detail/${id}?type=normal`);
//获取优品推荐
let getLikeGoods = ()=>http(`/api/front/product/good`)
// 加入购物车
let addCartGoods = (data)=>http(`/api/front/cart/save`,data,'post')
export {
    getGoodsInfo,
    getLikeGoods,
    addCartGoods
}